package com.taxigang.client.facebook;

import com.google.gwt.user.client.Window;
import com.google.gwt.user.client.rpc.AsyncCallback;

	public class OnLoadCallback implements AsyncCallback<ConnectState> {
		public void onFailure(Throwable caught) {
			Window.alert ( "Failed to get facebook connect status, hit reload" );
		}
		public void onSuccess(ConnectState result) {
			if ( result == ConnectState.connected ) {
				Window.alert("connected");
			
			} else {

				Window.alert("not connected");
			}
		}
	};


